package com.newcitysoft.study.jvs.v8.macr;

public class Person {
	private String firstName;
	private String lastName;
	private int age;
	public Person() {}
	public Person(String firstName, String lastName, int age) {
		this.firstName = firstName;
		this.lastName = lastName;
		this.age = age;
	}
	
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	@Override
	public String toString() {
		return firstName+" "+ lastName+" "+age;
	}
	
	public static boolean isTeens(int age){
		return age>=16 && age<=20?true:false;
	}
}